<?php
namespace Home\Controller;

use Think\Controller;

/**
*@desc 标签
*/
class TagController extends CommonController {
    private $auth_status = 0;//默认：未认证
    private $user_email = null;//用户邮箱
    private $uid = null;
    private $user_token = null;
    private $apis_table = "dmp_service_apis_image";//api信息 镜像表
    private $auth_type = 1;

    public function __construct(){
        parent::__construct();
        //是否普通用户，且是登录状态
        
        $this->getAuthStatus();
        $this->auth_status = session('37degree_auth_status');
        
        $this->user_email = session('user_email');
        $this->assign('user_email',$this->user_email);
        $this->uid = session('uid');
        $this->user_token = session('user_token');
        $this->auth_type = session('auth_type');

        $this->assign('user_token',$this->user_token);

        if(empty($this->uid)) redirect('/member/login.html');

    }

    //标签首页
    public function index(){
        //所有标签，
        echo "tag";die;
    }
    
    //添加tag
    public function ajaxAddTag(){

    }
    
    //编辑tag
    public function ajaxEditTag(){

    }

    //删除tag
    public function ajaxDelTag(){

    }

    //添加服务标签
    public function ajaxAddServiceTag(){
        
    }

    //删除服务标签（***删除服务时，删除对应服务的标签***）
    public function ajaxDelServiceTag(){
        
    }

    //编辑服务标签
    public function ajaxEditServiceTag(){
        
    }

}
